$("#circle1,#circle2").addClass("anim-flip");
//电桩
$(function () {
            $.ajax({
                 url: "/oms/getBigScreenByChargerId"+location.search,
                 type:"get",
                 // data:'',
                // jsonpCallback: "jsonpCallback",
                success: function (data) {
                    var obj = $.parseJSON(data);
                    console.log(data);
                    var pojo = obj.pojo;
                    console.log(pojo);
                    if(pojo !== null){
                    $.each(obj,function(i,item) {
                        if (i === 'success') {

                        }
                        else{
                            $('#circle2').circleProgress({
                            value: item.soc/100,
                            startAngle:-1.5,
                            size:700,
                            emptyFill: 'rgba(0, 0, 0, .1)',
                        }).on('circle-animation-progress', function(event, progress) {
                            $(this).find('strong').html(parseInt(item.soc * progress) + '%');
                        });

                        }
                        
                        
                    });  
                        // $(document).ready(function () {
                        // setInterval("Refresh()",5000);
                        // });
                   
                    }else{
                        $('#circle2').circleProgress({
                            value: 80/100,
                            startAngle:-1.5,
                            size:700,
                            emptyFill: 'rgba(0, 0, 0, .1)',
                        }).on('circle-animation-progress', function(event, progress) {
                            $(this).find('strong').html(parseInt(80 * progress) + '%');
                        });
                    }
                    },

                	error: function (responseText, textStatus, XMLHttpRequest) {
                    $('#circle2').circleProgress({
                            value: 80/100,
                            startAngle:-1.5,
                            size:700,
                            emptyFill: 'rgba(0, 0, 0, .1)',
                        }).on('circle-animation-progress', function(event, progress) {
                            $(this).find('strong').html(parseInt(80 * progress) + '%');
                        });
                }
            });
        });




